package com.java110.mall.goods.bmo.product;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.po.product.ProductPo;
import com.java110.po.product.ProductDetailPo;
import com.java110.po.product.ProductSpecValuePo;
import com.java110.po.shop.ShopDistributionModePo;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface ISaveProductBMO {


    /**
     * 添加产品
     * add by wuxw
     * @param productPo
     * @return
     */
    ResponseEntity<String> save(ProductPo productPo, String coverPhoto, JSONArray carouselFigurePhoto,
                                List<ProductSpecValuePo> productSpecValuePos, ProductDetailPo productDetailPo, String userId, ShopDistributionModePo shopDistributionModePo);


    /**
     * 导入产品
     * @param reqJson
     * @param storeId
     * @param userId
     * @return
     */
    ResponseEntity<String> importProducts(JSONObject reqJson, String storeId, String userId);
}
